package zwo.controller;

import zwo.dao.OrderdetailMapper;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.annotation.Resource;
import java.util.HashMap;
import java.util.Map;

@Controller
@RequestMapping("/admin/orderdetail")
public class OrderdetailController {

@Resource
private OrderdetailMapper orderdetailMapper;

    @ResponseBody
    @RequestMapping("/orderdetailAll.do")
    public Map orderdetailAll(Integer id){
        Map<String, Object> map = new HashMap<String, Object>();
        map.put("code", "0");
        map.put("msg", "");
        map.put("data", orderdetailMapper.orderdetailAll(id));
        return map;
    }
}
